<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table id="course-table" lay-filter="course"></table>

<script type="text/javascript">
	var option={
			elem:'#course-table',
			title:'课程列表',
			path:'course',
			addurl:'edit',
		    cols:[
	    		[ 
	    			{field:'id',sort:true,title:'ID'}
	        		,{field:'name',title:'课程名'}
	        		,{field:'classHours',title:'课时'}
	        	]
	    	]			
	};
	var $=layui.$;
	$(function(){
		var thisTable=new LayUiTable(option);
		thisTable.init();
	});
</script>
</body>
</html>